/*
 * Drop.cpp
 *
 *  Created on: 01/11/2012
 *      Author: san
 */

#include "Drop.h"
#include <iostream>
Drop::Drop(Dibujable *element) : element(element) {
	this->image.set(this->element->getImagePath());
	this->add(this->image);
	this->image.show();
	this->set_visible_window(false);
	this->show();
}

Drop::~Drop() {
}

std::string Drop::getImagePath() const {
	return this->element->getImagePath();
}

void Drop::setImage(std::string imagePath) {
	this->image.set(this->element->getImagePath());
}

Dibujable *Drop::getDibujable() {
	return this->element;
}

double Drop::getX() const {
	return this->element->getPosicionX();
}

double Drop::getY() const {
	return this->element->getPosicionY();
}
